mother-in-law apartment
noun
°A small apartment attached to or carved out of a nominally single-family house, ostensibly intended for occupancy by a mother-in-law or other relative, but potentially also rented out to a stranger.
synonyms: granny-room, granny annexe